package com.example.shop.modules.sys.controller;


import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.shop.modules.sys.service.IIndexSalesService;
import com.example.shop.persistence.entity.IndexSales;
import com.example.shop.utils.JSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import static com.example.shop.utils.JSONResult.renderSuccess;

/**
 * <p>
 * 首页商品促销分类表 前端控制器
 * </p>
 *
 * @author jason
 * @since 2020-06-15
 */
@Api(tags = "商品促销分类表")
@RestController
@RequestMapping("/sys/indexSales")
public class IndexSalesController {

    @Autowired
    private IIndexSalesService indexSalesService;

    @GetMapping
    @ApiOperation(value = "查询")
    public JSONResult selectSales(){
        return indexSalesService.selectSales();
    }
}

